﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace Model
{
    public class Category
    {
        ﻿public string Name { get; set; }
         public long ID { get; set; }
         public string GroupIcon { get; set; }
         public string Desc { get; set; }
         public string Password { get; set; }
         public DateTime? CreateDate { get; set; }
         public bool IsVisble { get; set; }
         public DateTime? LastModifiedTime { get; set; }
         public TimeSpan? LastSyncTimeSpan { get; set; }
         public long? SyncState { get; set; }
         public long? SyncExtraState { get; set; }
         public long? SyncAccountID { get; set; }
         public string SyncGuid { get; set; }
         public long? SyncVersion { get; set; }
         public bool ShouldSync { get; set; }
         public long? GroupIndex { get; set; }

         public static explicit operator CategorySumView(Category category)
         {
             return new CategorySumView();
         }
    }

    public class CategorySumView : Category
    {
        public long ChildCount { get; set; }
    }
}
